﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System;
using System.Collections.Generic;

namespace com.guojin.mj.net.message.login
{
    public class CheckInfo : Message
    {
        public static int TYPE = 7;
        public static int ID = 78;

        private List<CheckNumberInfo> list;
        private string clubid;
        public List<CheckNumberInfo> List
        {
            get
            {
                return list;
            }

            set
            {
                list = value;
            }
        }

        public string Clubid
        {
            get
            {
                return clubid;
            }

            set
            {
                clubid = value;
            }
        }

        public void decode(Input _in)
        {
            int len =_in.readInt();
            if (len > 0)
            {
                list = new List<CheckNumberInfo>();
                for (int i = 0; i < len; i++)
                {
                    CheckNumberInfo accessClubInfo = new CheckNumberInfo();
                    accessClubInfo.decode(_in);
                    list.Add(accessClubInfo);
                }
            }
            clubid = _in.readString();
        }

        public void encode(Output _out)
        {
          
        }
        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            string sum = "null";
            if (List!=null)
            {
                sum = "List+" + List.Count;
            }
            return sum+"clubid"+Clubid;
        }
    }
}
